#include "robotthread.h"
#include <sstream>
#include <iostream>
using namespace std;
RobotThread::RobotThread(QObject *parent) :
        QThread(parent)
{
}

void RobotThread::run()
{
//    this->robot->printRobot();
    this->usleep(2000);
    this->robot->stopMoving();
    this->robot->releaseCell();
    //this->robot->printRobot(); cout<<" is at ";robot->getOccupiedCell()->printCell(); cout << endl;
    this->robot->ask4NextCell();
}
